package com.mt.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mt.pojo.OrderInfo;
import com.mt.pojo.CinemaSeat;
import com.mt.vo.OrderListVO;
import com.mt.pojo.Ticket;
import com.mt.vo.PayOrderVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Wang
 * @since 2020-12-28
 */
public interface OrderService extends IService<OrderInfo> {

    PayOrderVO createOrder(String userId, int scheduleId, List<CinemaSeat> seats);
    Integer checkOrdersStatus(String orderId);
    List<OrderListVO> listOrderByUser(String userId);
    IPage<OrderListVO> pageOrderList(int currentPage, int pageSize, String filmName,int cinemaId);
    boolean existTicket(int scheduleId, List<CinemaSeat> seatList);
    Boolean confirmPayOrder(String orderId);
    List<Integer> getSoldTickets(int scheduleId);

    Ticket getOrderDetail(String orderId);

    Boolean cancelOrder(Long orderId );


}
